﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetNuke.Common.Utilities;
using Christoc.Modules.CouponsDiscounts.Data;

namespace Christoc.Modules.CouponsDiscounts.Components.Controllers
{
    public class ProductController
    {
        public static List<Product> GetProducts()
        {
            return CBO.FillCollection<Product>(DataProvider.Instance().GetProducts());
        }

        public static Product GetProduct(int productID)
        {
            return CBO.FillObject<Product>(DataProvider.Instance().GetProduct(productID));
        }
    }
}